@import '~antd/lib/style/themes/default.less';

.logoWrap {
    display: flex;
    align-items: center;
}
.logoText {
    margin-left: 24px;
}

.tableList {
    .tableListOperator {
        margin-bottom: 16px;
        button {
            margin-right: 8px;
        }
    }
}

.tableListForm {
    :global {
        .ant-form-item {
            display: flex;
            margin-right: 0;
            margin-bottom: 24px;
            > .ant-form-item-label {
                width: auto;
                padding-right: 8px;
                line-height: 32px;
            }
            .ant-form-item-control {
                line-height: 32px;
            }
        }
        .ant-form-item-control-wrapper {
            flex: 1;
        }
    }
    .submitButtons {
        display: block;
        margin-bottom: 24px;
        white-space: nowrap;
    }
}

.orgEditInfoTitle {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-top: 2px;
    margin-bottom: 24px;
}

.rowMarginTopStyle {
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    :global {
        .ant-row {
            margin-top: 10px;
        }
    }
}

.tabsPaneMargin {
    :global {
        .ant-tabs-bar {
            margin: 0 0 24px 0;
        }
    }
}

@media screen and (max-width: @screen-lg) {
    .tableListForm :global(.ant-form-item) {
        margin-right: 24px;
    }
}

@media screen and (max-width: @screen-md) {
    .tableListForm :global(.ant-form-item) {
        margin-right: 8px;
    }
}
.rightItem {
    flex-direction: column;
    align-items: flex-end;
}
.btns {
    button {
        margin-left: 10px;
    }
}

.companyInfo {
    :global {
        .ant-row {
            margin-top: 10px;

            &:first-child {
                margin-top: 0;
            }
        }
        .ant-col {
            span {
                color: rgba(0, 0, 0, 0.45);
                &:first-child {
                    color: #333;
                }
            }
        }
    }
}
.rightText {
    line-height: 32px;
}
.rightBtns {
    button {
        margin-left: 10px;
    }
}

.bodyNoPadding {
    :global {
        .ant-card-body {
            padding: 24px 24px 16px;
        }
    }
}

.person {
    display: block;
}
.companyTree {
    :global {
        .isJT {
            border: 1px dashed rgba(255, 162, 45, 1);
            border-radius: 0;
            background: rgba(255, 162, 45, 0.04);
        }
    }
}
.departmentContent {
    width: 311px;
    .title {
        border-bottom: 1px solid rgba(255, 162, 45, 1);
        line-height: 33px;
        margin-bottom: 16px;
        .name {
            font-size: 16px;
            color: rgba(0, 0, 0, 0.85);
            font-weight: bold;
        }
    }

    :global {
        .ant-form-item {
            margin-bottom: 4px;
            line-height: 30px;
        }
        .ant-form-item-control {
            line-height: 30px;
        }
        .ant-form-item-label {
            line-height: 30px;
        }
        .ant-form-item-children {
            line-height: 30px;
            color: rgba(0, 0, 0, 0.45);
        }
    }
}

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid #f2f2f2;
}
.userName {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.85);
    font-weight: bold;
}
.info {
    margin: 6px 0 20px;
    color: rgba(0, 0, 0, 0.45);
}
.personContent {
    width: 391px;
    :global {
        .ant-form-item {
            margin-bottom: 0;
        }
        .ant-form-item-label {
            color: rgba(0, 0, 0, 0.65);
            text-align: left;
        }
        .ant-form-item-children {
            color: rgba(0, 0, 0, 0.45);
        }
        .ant-row-flex {
            margin-bottom: 9px;
        }
    }
    .tags {
        span {
            display: inline-block;
            padding: 0 8px;
            line-height: 24px;
            background: rgba(0, 0, 0, 0.03);
            border-radius: 12px;
            color: rgba(0, 0, 0, 0.65);
            margin-right: 8px;
            margin-bottom: 8px;
        }
    }
    .right {
        flex: 1;
    }
}
:global {
    .t_company {
        > span {
            background: rgba(255, 158, 0, 0.1) !important;
            color: #ffa22d !important;
            font-weight: 600;
        }
    }
    .box {
        background: #fff;
        display: inline-block;
        vertical-align: middle;
    }
    .expanded-item {
        > .topology-label {
            > div {
                > div {
                    > .bottomLine {
                        display: block;
                    }
                    > div {
                        > .collapsedBtn {
                            display: block;
                        }
                        > .expandedBtn {
                            display: none;
                        }
                    }
                }
            }
        }
        > .topology-children {
            display: block;
        }
    }
    .collapsed-item {
        > .topology-label {
            > div {
                > div {
                    > .bottomLine {
                        display: none;
                    }
                    > div {
                        > .collapsedBtn {
                            display: none;
                        }
                        > .expandedBtn {
                            display: block;
                        }
                    }
                }
            }
        }
        > .topology-children {
            display: none;
        }
    }
    .expanded-h-item {
        .personDiv {
            display: block;
        }
        .zsEmployee {
            &:after {
                display: block;
            }
        }
        .hexpandedBtn {
            display: none;
        }
        .hcollapsedBtn {
            display: block;
        }
    }
    .collapsed-h-item {
        .personDiv {
            display: none;
        }
        .zsEmployee {
            &:after {
                display: none;
            }
        }
        .hexpandedBtn {
            display: block;
        }
        .hcollapsedBtn {
            display: none;
        }
    }
}
.box0 {
    background: #ffe7c9;
    border: none !important;
    :global {
        .topology-label {
            background: #ffe7c9;
        }
    }
}
.zsEmplyoee {
    display: inline-block;
    vertical-align: top;
    margin-left: 30px;
    position: relative;
    margin-top: 15px;

    &:after {
        content: '';
        position: absolute;
        height: 1px;
        width: 30px;
        background: #ccc;
        left: -30px;
        top: 31px;
    }

    :global {
        .personDiv {
            border-left: 1px solid #ccc !important;
            &:first-child {
                border-left: none !important;
            }
        }
        .hBtns {
            position: absolute;
            left: -21px;
            top: 24px;
            z-index: 2;
            background: #fff;
        }
    }
}

.addBtn {
    position: absolute;
    top: -10px;
    right: -48px;
    display: none;
    z-index: 2;
    background: #fff;

    :global {
        .ant-btn {
            display: block;
            height: 20px;
            line-height: 20px;
            width: 48px;
            text-align: center;
            border: 1px solid rgba(82, 196, 26, 1);
            color: rgba(82, 196, 26, 1);
            border-radius: 2px;
            font-size: 12px;
            padding: 0;
        }
        .ant-btn:hover {
            background: #52c41a;
            color: #fff;
        }
        .ant-btn:active {
            background: #52c41a;
            color: #fff;
        }
    }
}

.cardTitle {
    :global {
        .ant-card-body {
            padding: 8px 24px 16px 24px;
        }
        .ant-card-head-title {
            font-weight: 600 !important;
        }
        .ant-card-head {
            border-bottom: none;
        }
    }
}

.orgDetailCard {
    :global {
        .ant-card-head-title {
            padding: 32px 0 16px;
        }
        .ant-card-extra {
            padding: 32px 0 16px;
        }
    }
}
